From 5aebcfee2a1bd47bf694d4600ec29849b6f4d968 Mon Sep 17 00:00:00 2001 From: "smh22@firebug.cl.cam.ac.uk" Date: Wed, 16 Nov 2005 18:28:09 +0100 Subject: [PATCH] Fix annoying error introduced during cleanup. Oops. Signed-off-by: Steven Hand --- tools/libxc/xc_linux_save.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_linux_save.c b/tools/libxc/xc_linux_save.c index 98308eedb8..6ca8b725df 100644 --- a/tools/libxc/xc_linux_save.c +++ b/tools/libxc/xc_linux_save.c @@ -73,7 +73,7 @@ static unsigned long *live_m2p = NULL; */ #define BITS_PER_LONG (sizeof(unsigned long) * 8) -#define BITMAP_SIZE ((max_pfn + BITS_PER_LONG - 1) / BITS_PER_LONG) +#define BITMAP_SIZE ((max_pfn + 7) / 8) #define BITMAP_ENTRY(_nr,_bmap) \ ((unsigned long *)(_bmap))[(_nr)/BITS_PER_LONG] -- 2.30.2